package org.practice.proxy.subclass;

import java.lang.reflect.Method;

import net.sf.cglib.proxy.Enhancer;

public class SubClassProxyFactory{
	private static Enhancer enhancer=new Enhancer();// 用于动态生成子类
	
	public static Object getProxyObject(Class clz){
		enhancer.setSuperclass(clz);
		enhancer.setCallback(new BusinessInterceptorHandler());
		return enhancer.create();
	}
}
